﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfRedis.Models
{
    public class PatientBuild : BindableBase
    {
        #region 数据库字段
        private string _Name;
        /// <summary>
        /// 名字
        /// </summary>
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                _Name = value;
                RaisePropertyChanged(nameof(Name));
            }
        }

        

        #endregion

        private VitCheck _VitCheck;
        /// <summary>
        /// 生命体征实体
        /// </summary>
        public VitCheck VitCheck
        {
            get
            {
                return _VitCheck;
            }
            set
            {
                _VitCheck = value;
                RaisePropertyChanged(nameof(VitCheck));
            }
        }

        private Vit _Vit;
        /// <summary>
        /// 生命体征实体
        /// </summary>
        public Vit Vit
        {
            get
            {
                return _Vit;
            }
            set
            {
                _Vit = value;
                RaisePropertyChanged(nameof(Vit));
            }
        }
    }

    public class ViewShow : BindableBase
    {
        
    }

    public class Vit : BindableBase
    {
        private string _SBP;
        /// <summary>
        /// 收缩压
        /// </summary>
        public string SBP
        {
            get
            {
                return _SBP;
            }
            set
            {
                _SBP = value;
                RaisePropertyChanged(nameof(SBP));
            }
        }

        private string _DBP;
        /// <summary>
        /// 收缩压
        /// </summary>
        public string DBP
        {
            get
            {
                return _DBP;
            }
            set
            {
                _DBP = value;
                RaisePropertyChanged(nameof(DBP));
            }
        }
    }

    /// <summary>
    /// 验证实体
    /// </summary>
    public class VitCheck : BindableBase
    {
        private string _SBP_MSG;
        /// <summary>
        /// 收缩压验证结果
        /// </summary>
        public string SBP_MSG
        {
            get
            {
                return _SBP_MSG;
            }
            set
            {
                _SBP_MSG = value;
                RaisePropertyChanged(nameof(SBP_MSG));
            }
        }

        private string _DBP_MSG;
        /// <summary>
        /// 舒张压验证结果
        /// </summary>
        public string DBP_MSG
        {
            get
            {
                return _DBP_MSG;
            }
            set
            {
                _DBP_MSG = value;
                RaisePropertyChanged(nameof(DBP_MSG));
            }
        }

        private string _Error;
        /// <summary>
        /// 所有错误信息
        /// </summary>
        public string Error
        {
            get
            {
                return _Error;
            }
            set
            {
                _Error = value;
                RaisePropertyChanged(nameof(Error));
            }
        }
    }
}
